import request from '@/utils/request'

export function findRole(data) {
    return request({
        url: 'http://localhost:8081/rbac/role/find',
        method: 'post',
        data
    })
}

export function saveRole(data) {
    return request({
        url: 'http://localhost:8081/rbac/role/save',
        method: 'post',
        data
    })
}

export function updateRole(data) {
    return request({
        url: 'http://localhost:8081/rbac/role/update',
        method: 'post',
        data
    })
}

export function deleteRole(id) {
    return request({
        url: `http://localhost:8081/rbac/role/delete/${id}`,
        method: 'post'
    })
}
